package day04;

import java.util.Scanner;

public class DOWhileDemo {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int mun = (int)(Math.random()*1000+1);
      //  System.out.println(mun);
//假设mun=350
        //300（小）400（大）350（对）
        int guess;
        do {
            System.out.println("猜吧！");
            guess = scan.nextInt();
            if(guess>mun){
                System.out.println("猜大了");
            }else if(guess<mun){
                System.out.println("猜小了");
            }else{
                System.out.println("李云龙说：你他娘的真是个天才，居然让你猜对了");
            }
        } while (guess!=mun);
    }
}
